package ru.spb.osll.myfit.fixtures;

import org.apache.log4j.Logger;

import ru.spb.osll.myfit.fixtures.base.OneLineFixture;



/**
 * User: Artem Bukhonov
 * Email: nerzhulart@gmail.com
 * Date: 10.11.11
 * Time: 17:27
 */
public class SquareFixture extends OneLineFixture {
  public boolean square(String n) {
    Logger log = Logger.getLogger(SquareFixture.class);
    int nn = Integer.valueOf(n);
    for (int i = 0; i < nn; ++i) {
      log.info("x=" + i + "y="+i * i);
//      try {
//        Thread.sleep(1000);
//      } catch (InterruptedException e) {
//        e.printStackTrace();
//      }
    }
    return true;
  }

  public static String[] getTestTableTemplates() {
    return new String[] {"|square|1|"};
  }
}
